package com.hlkj.pay.vo.pay.req;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.hlkj.pay.dto.merchant.ProviderChannelFeeConfigList;
import com.hlkj.pay.vo.BaseReq;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* 服务商支付方式费率配置信息
* @TableName t_provider_channel_fee_config
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ProviderChannelFeeConfigReq  extends BaseReq {
    /**
    * 服务商编码
    */
    @NotBlank(message="[服务商编码]不能为空")
    @Schema(description = "服务商编码")
    private String providerCode;
    /**
    * 渠道编码
    */
    @NotBlank(message="[渠道编码]不能为空")
    @Schema(description = "渠道编码")
    private String channelCode;
    /**
     * 通道编码
     */
    @Size(min= 1,message="服务商费率配置 必须要有一个")
    @Schema(description = "服务商费率配置")
    @Valid
    private List<ProviderChannelFeeConfigList> providerChannelFeeConfigList;

}
